package User;

import Book.BookList;
import BookOpertion.IOpertion;

public abstract class User {

    private String name;

    public IOpertion[] iOpertions;

    public User(String name) {
        this.name = name;

    }

    public abstract int meun();

    public String getName() {
        return name;
    }

    public void doopertion(int choice, BookList bookList) {
        IOpertion iOpertion = iOpertions[choice];
        iOpertion.opertion(bookList);
    }
}
